import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import {
  ClockCircleOutlined,
  AntCloudOutlined,
  BarsOutlined,
  DeleteOutlined,
  CommentOutlined,
  CopyOutlined,
} from '@ant-design/icons-vue'
const menuRoutes = [
  // {
  //   path: '/cloud/index',
  //   name: '云盘文件',
  //   component: () => import('../views/CloudDisk/index.vue'),
  //   meta: {
  //     icon: AntCloudOutlined,
  //   },
  // },
  {
    path: '/home/index',
    name: '云盘文件',
    component: HomeView,
    meta: {
      icon: AntCloudOutlined,
    },
  },
]
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/home',
    },

    {
      path: '/home',
      name: 'home',
      redirect: '/home/index',
      component: () => import('../views/Layout/index.vue'),
      children: menuRoutes,
    },
  ],
})

export default router
export { menuRoutes }
